package com.gs.weather.dao;

import com.gs.weather.dao.mapper.XsAreaMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Repository
public class XsAreaDao {
    Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    XsAreaMapper mapper;

    //查询镇街
    public List<String> queryArea() {
        try {
            List<String> list = mapper.queryArea();
            return list;
        } catch (Exception e) {
            logger.info("queryArea失败->{}", e.getMessage());
            return null;
        }
    }
}
